﻿package com.saint.video.events{
	
	import flash.events.Event;

	public class VideoEvent extends Event {
		
		public static const PLAY_STOPPED:String = "play stopped - end of video";
		public static const META_DATA_DURATION:String = "meta data - duration";
		public static const STREAMING_PECENTAGE:String = "streaming percentage";
		
		public var eventID:String;
		public var data:*;
		
		public function VideoEvent(type:String, data:*=null, bubbles:Boolean = false, cancelable:Boolean = false) {
			this.eventID = type;
			this.data = data;
			super(type, bubbles, cancelable);
		}

		/**
		 * Returns a String containing all the properties of the current instance.
		 * @return A string representation of the current instance.
		 */
		public override function toString():String {
			return formatToString("VideoEvent", "type", "bubbles", "cancelable", "eventPhase");
		}
	}
}